﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ServiceTemplate;

namespace InscriberControlServer
{
    class INI
    {
        public int introtime = 17000;
        public int vttime = 17000;
        public int RLtimeCorrection = 17000;
        public int RLHeaderTimer = 5000;
        public int LDHotNewsTimerBefore = 0;
        public int LDHotNewsTimerAfter = 0;

        public void readINI()
        {
            IniParser parser = new IniParser(Functionality.StartPath+"\\timers.ini");
            vttime = Int32.Parse(parser.GetSetting("timers", "vttime"));
            introtime = Int32.Parse(parser.GetSetting("timers", "introtime"));
            RLtimeCorrection = Int32.Parse(parser.GetSetting("timers", "RLtimeCorrection"));
            RLHeaderTimer = Int32.Parse(parser.GetSetting("timers", "RLHeaderTimer"));
            //LDHotNewsTimerBefore = Int32.Parse(parser.GetSetting("timers", "LDHotNewsTimerBefore"));
            //LDHotNewsTimerAfter = Int32.Parse(parser.GetSetting("timers", "LDHotNewsTimerAfter"));
        }
    }
}
